package cn.xxx.org.service.impl;

import cn.xxx.basic.service.impl.BaseServiceImpl;
import cn.xxx.basic.util.PageList;
import cn.xxx.org.domain.Department;
import cn.xxx.org.mapper.DepartmentMapper;
import cn.xxx.org.query.DepartmentQuery;
import cn.xxx.org.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

    @Override
    public List<Department> getDeptTree() {
        return departmentMapper.getDeptTree();
    }
}
